package com.steak.spring.cyclicdependence.singleton;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.HashSet;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(UserService.class,PostService.class);
        UserService userService = context.getBean("userService", UserService.class);
        System.out.println(userService);
    }
}
